package com.redis.hyperloglog;

import redis.clients.jedis.Jedis;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author Administrator
 * @create 2020-09-30 17:11
 */
public class PfTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("10.2.32.104", 6379);
        for (int i = 0; i < 100_000; i++) {
            jedis.pfadd("codehole", "user" + i);
        }
        long total = jedis.pfcount("codehole");
        System.out.printf("%d %d\n", total, 100000);
        jedis.close();
    }
}
